package cn.tj.service;

import cn.tj.entity.PageBean;
import cn.tj.entity.Type;

import java.util.List;

public interface TypeService {
    List<Type> list();

    PageBean<Type> listByPage(Integer currentPage, Integer pageSize, Double minPrice, Double maxPrice);

    Type getById(Integer id);

    void edit(Type type);

    void add(Type type);

    void deleteById(Integer id);
}
